import java.util.Scanner;

/**
 *
 将一个字符串str的内容颠倒过来，并输出。str的长度不超过100个字符。 如：输入“I am a student”，输出“tneduts a ma I”。
 *
 *
 * @author: YuanChilde
 * @date: 2020-02-17 8:01
 * @version: 1.0
 * Modification History:
 * Date    Author      Version     Description
 * -----------------------------------------------------------------
 * 2020-02-17 8:01    YuanChilde     1.0        新增
 */
public class Demo26 {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextLine()){
            String shortStr = sc.nextLine();
            String longStr = sc.nextLine();
            int i = 0;
            for(;i<shortStr.length();i++){
                if(longStr.indexOf(shortStr.charAt(i)) == -1){
                    System.out.println("false");
                    i--;
                    break;
                }
            }
            if(i == shortStr.length()){
                System.out.println("true");
            }
        }
        sc.close();
    }
}
